package org.hs.phd.odi.tracking.ui.trackInitialization;

import java.awt.Component;
import java.awt.Point;
import java.awt.Polygon;
import java.awt.image.BufferedImage;

import javax.swing.JLabel;

import org.hs.phd.common.frameviewer.FrameViewer;
import org.hs.phd.common.frameviewer.FrameViewerTransformation;
import org.hs.phd.common.frameviewer.ViewerLayer;

import com.googlecode.javacv.cpp.opencv_core.IplImage;

class DummyFrameViewer implements FrameViewer, FrameViewerTransformation{

	@Override
	public Component getUI() {
		return new JLabel();
	}

	@Override
	public void addLayer(ViewerLayer layer) {
	}

	@Override
	public void setImage(IplImage image) {
	}

	@Override
	public void setImage(BufferedImage image) {
	}

	@Override
	public void repaint() {
	}

	@Override
	public void zoomIn() {
	}

	@Override
	public void zoomOut() {
	}

	@Override
	public Point viewToModel(int x, int y) {
		return new Point(x,y);
	}

	@Override
	public Point modelToView(int x, int y) {
		return new Point(x,y);
	}

	@Override
	public Polygon modelToView(Polygon polygon) {
		return polygon;
	}

	@Override
	public Polygon viewToModel(Polygon polygon) {
		return polygon;
	}

	@Override
	public void setScale(float scale) {
	}

	@Override
	public float getScale() {
		return 1;
	}

	@Override
	public FrameViewerTransformation getTransformation() {
		return this;
	}
	
}